package com.dg.param;

import lombok.Data;
import lombok.NonNull;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class DeptParam {

    private Integer id;

    @NotBlank
    @Length(min = 1, max =20, message = "部门名称长度必须在1~之间")
    private String name;

    @NonNull
    private Integer seq;

    @Length(min = 0, max =200, message = "备注长度必须在200个字之内")
    private String remark;

}
